<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<% 
response.setHeader("Pragma","No-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0); 
%> 
<div style="padding: 10px;">
	<form id="sysresourcesUpdateForm" class="layui-form layui-form-pane" action="${pageContext.request.contextPath}/back/sysresources/updatesysresources">
      	<input type="text" name="id" value="${sys_resources.id}" style="display: none;">
      	<input type="text" name="parentid" value="${sys_resources.parentid}" style="display: none;">
      	<input type="text" name="level" value="${sys_resources.level}" style="display: none;">
		<div class="layui-form-item ">
		    <label class="layui-form-label">资源名称</label>
		    <div class="layui-input-block">
		      <input type="text" name="name" value="${sys_resources.name}" lay-verify="required" autocomplete="off" maxlength="50" placeholder="请输入资源名称" class="layui-input">
		    </div>
		</div>
		<div class="layui-form-item ">
		    <label class="layui-form-label">资源标识</label>
		    <div class="layui-input-block">
		      <input type="text" name="reskey" value="${sys_resources.reskey}" lay-verify="required" autocomplete="off" maxlength="50" placeholder="请输入资源标识" class="layui-input">
		    </div>
		</div>
		<div class="layui-form-item ">
		    <label class="layui-form-label">资源路径</label>
		    <div class="layui-input-block">
		      <input type="text" name="resurl" value="${sys_resources.resurl}" autocomplete="off" maxlength="200" placeholder="请输入资源路径" class="layui-input">
		    </div>
		</div>
		<div class="layui-form-item ">
		    <label class="layui-form-label"><a onclick="iconShow()" href="javacript:void(0);">资源图标</a></label>
		    <div id="tooliconshow" class="layui-input-block" style="border: 1px solid #e6e6e6;">
			    <i class="layui-icon">${sys_resources.icon}</i>
		      	<input type="text" name="icon" value="${sys_resources.icon}" style="display: none;">
		      	<a onclick="iconShow()" style="position: relative;float: right;top:-1px;" class="layui-btn layui-btn-primary">点击选择图标</a>
		    </div>
		</div>
		<div class="layui-form-item ">
		    <label class="layui-form-label">是否隐藏</label>
		    <div class="layui-input-block">
		    	<select name="ishide">
			        <option value="0"
				        <c:if test="${sys_resources.ishide==0}">
				        selected="selected"
				        </c:if>
			        >显示</option>
			        <option value="1"
				        <c:if test="${sys_resources.ishide==1}">
				        selected="selected"
				        </c:if>
			        >隐藏</option>
			    </select>
		    </div>
		</div>
		<div class="layui-form-item ">
		    <label class="layui-form-label">排序序号</label>
		    <div class="layui-input-block">
		      <input type="number" name="ordernum" value="${sys_resources.ordernum}" lay-verify="required" value="0" autocomplete="off" maxlength="4" placeholder="请输入排序序号" class="layui-input">
		    </div>
		</div>
		<div class="layui-form-item layui-form-text">
		    <label class="layui-form-label">资源描述</label>
		    <div class="layui-input-block">
		      <textarea name="description" maxlength="500" placeholder="请输入资源描述" class="layui-textarea">${sys_resources.description}</textarea>
		    </div>
		</div>
		<div class="layui-form-item" align="center">
		    <button class="layui-btn"  lay-submit="" lay-filter="sysresourcesUpdateSubmit" style="width:120px;">提交</button>
		    <a onclick="formreset();" class="layui-btn layui-btn-primary">重置</a>
		</div>
	</form>
	<script src="${pageContext.request.contextPath}/static/js/back/sysresources/sysresourcesUpdatePage.js"></script>
</div>
    